import request from '@/utils/request'
// 获取辅导员或班主任信息列表
export function clrClassList(query) {
  return request({
    url: '/clr/counsellor/clrOrCsThr',
    method: 'get',
    params: query
  })
}
// 辅导员或班主任分配班级
export function addClass(query) {
  return request({
    url: '/clr/counsellor/addClass',
    method: 'post',
    data: query
  })
}
// 查询辅导员或班主任分班信息列表
export function clrCounsellorList(query) {
  return request({
    url: '/clr/counsellor/clrClassList',
    method: 'get',
    params: query
  })
}
// 删除辅导员分配的班级
export function delClass(cId, type,classId) {
  return request({
    url: '/clr/counsellor/clrClass/' + cId + type + classId,
    method: 'delete',
  })
}
// 删除班级分配的辅导员信息
export function delRemove(classIds,type,cId) {
  return request({
    url: '/clr/counsellor/remove/' + classIds + '/' + type + '/' + cId,
    method: 'delete',
  })
}
//查询班级下的辅导员或班主任

export function classClrOrCsThr( classId,type) {
  return request({
    url: '/clr/counsellor/classClrOrCsThr/' + classId  +  '/'+ type,
    method: 'get',
  })
}
export function crlClass(id,type) {
  return request({
    url: '/clr/counsellor/crlClass/' + id + "/" + type,
    method: 'get',
  })
}
export function ubdClass(query) {
  return request({
    url: '/basic/class/ubdClass',
    method: 'get',
    params: query
  })
}